package uhasselt.ontologyplugin;

import uhasselt.ontologyplugin.OntologyReader.RelationName;
import uhasselt.ontologyplugin.OntologyReader.SearchMode;

public class Main {

	/**
	 * @param args
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 */
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, OntologyControllerException {
		OntologyController c = OntologyController.initializeInstance("/Users/jvaelen/Dropbox/uhasselt/Vakantiewerk/ontologypluginuhasselt/config/ontologies.properties",
                "/Users/jvaelen/Dropbox/uhasselt/Vakantiewerk/ontologypluginuhasselt/config/ontologySettings.properties");
		System.out.println(c.getReader("vocbenchagrovoc").search("water", SearchMode.CONTAINS, "en"));
		System.out.println(c.getReader("jita").search("knowledge", SearchMode.CONTAINS, "foo"));
		System.out.println(c.getReader("jita").getRelations("TRKN", RelationName.BROADER));
		System.out.println(c.getReader("jita").getConcept("TRKN"));
		System.out.println(c.getReader("jita").getTopLevelTerms());
	}

}
